package com.ruoyi.yljf.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.yljf.domain.Classify;
import io.swagger.util.Json;
import org.checkerframework.checker.units.qual.K;

import java.util.List;
import java.util.Map;

/**
 * 分类管理Mapper接口
 * 
 * @author metaee
 * @date 2025-02-24
 */
public interface ClassifyMapper extends BaseMapper<Classify> {
    /**
     * 查询三级分类树形结构（顶级分类→科室→疾病）
     * @return List<Map<String, Object>> 结构示例：
     *   {
     *     "id": 1,
     *     "type": "内科",
     *     "keshilist": [
     *       {
     *         "id": 101,
     *         "name": "呼吸科",
     *         "jibinglist": [{"id": 1001, "name": "肺炎"}, ...]
     *       }
     *     ]
     *   }
     */
    List<Map<String, Object>> queryList();
}
